{{- if .Values.kubeDns.clusterDomainAliases }}
  {{- range $namespace := .Values.kubeDns.internal.stsNamespaces }}
---
apiVersion: v1
kind: Secret
metadata:
  name: deckhouse-registry-kube-dns
  namespace: {{ $namespace }}
  {{- include "helm_lib_module_labels" (list $) | nindent 2 }}
type: kubernetes.io/dockerconfigjson
data:
  .dockerconfigjson: {{ $.Values.global.modulesImages.registry.dockercfg }}
  {{- end }}
{{- end }}
